import pandas as pd
from flask import Flask, render_template

datas = {}
df = pd.read_csv('data/中国疫情.csv')

for item in df.values:
    datas[item[1]] = item[4]

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('累计疫情热力图加地图.html', datas=datas)


if __name__ == '__main__':
    app.run(debug=True)
